﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/TemplateAdmin.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="AirlineProject.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Ticket
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

   
   <table class="listing" cellpadding="0" cellspacing="0" width="30">
					<tr>
						
						<th>Ticket Id</th>
						<th>Bill Id</th>
						<th>Flight Id</th>
						<th>Ticket Date</th>
						<th>Ticket Type</th>
                        <th>Child Num</th>
                        <th>Class</th>
                        <th>Ticket Price</th>
                        <th>Status</th>
                        <th>Payment_id</th>
                        <th>Action</th>
                        
					</tr>
					
                    <%
                        DataModels spm = new DataModels();
                        List<Ticket> fl = spm.Listticket();
                        foreach(Ticket ds in fl)
                        {
                         %>
                        <tr>
                     
						<td><%= ds.ticket_id %></td>
						<td><%= ds.bill_id %></td>
						<td><%= ds.flight_id %></td>
						<td><%= ds.ticket_date %></td>
						<td><%= ds.type_id %></td>
                        <td><%= ds.child_num %></td>
                        <td><%= ds.class1 %></td>
                        <td><%= ds.ticket_price %></td>
                        <td><%= ds.Payment_id %></td>
                        <td><%= ds.status %></td>
                        <td><a href="<%=Url.Action("addticket","Add") %>"><a href="<%=Url.Action("editticket/"+ds.ticket_id,"edit") %>"><img src="../../../../Content/admin/images/user_edit.png" title="Edit Ticket" width="16" height="16" /></a><a href="<%= Url.Action("deleteticket/"+ds.ticket_id,"templateadmin") %>"><img src="../../../../Content/admin/images/user_delete.png" title="Delete Ticket" width="16" height="16" /></a></td>
                        </tr>
        
                      <%  }%>
        
					
				</table>
                <div id="pager">
                    	Page <a href="#"><img src="../../../../Content/admin/images/arrow_left.gif" width="16" height="16" /></a> 
                    	<input size="1" value="1" type="text" name="page" id="page" /> 
                    	<a href="#"><img src="../../../../Content/admin/images/arrow_right.gif" width="16" height="16" /></a>of 42
                    pages | View <select name="view">
                    				<option>10</option>
                                    <option>20</option>
                                    <option>50</option>
                                    <option>100</option>
                    			</select> 
                    per page | Total <strong>420</strong> records found
                    </div>


</asp:Content>
